# Maintainer: Antonio Rojas <arojas@archlinux.org>

pkgname=maui-nota
_pkgname=nota
pkgver=2.2.2
pkgrel=1
pkgdesc='Multi-platform text editor'
url='https://mauikit.org/'
arch=(loong64 x86_64)
license=(GPL3)
depends=(mauikit-filebrowsing mauikit-texteditor hicolor-icon-theme)
makedepends=(extra-cmake-modules)
groups=(maui)
source=(https://download.kde.org/stable/maui/$_pkgname/$pkgver/$_pkgname-$pkgver.tar.xz)
sha256sums=('36a3280aaef73f248a85dd4e151d682fbfc91357905785f07d89bea232d1e2b0')

build() {
  cmake -B build -S $_pkgname-$pkgver
  cmake --build build
}

package() {
  DESTDIR="$pkgdir" cmake --install build
}
